{template header}
<style type="text/css">
    a.btn-primary {margin-top: 3px;}
</style>
<div class="bs-docs-example" style="clear:both;">
    <table class="table table-striped">
        <thead>
            <tr>
                <th width="240">标题</th>
                <th>作者</th>
                <th width="145">添加时间|最后更新</th>
                <th>标签</th>
                <th>总评论</th>
                <th>点击统计</th>
                <th>显示</th>
                <th>略缩图</th>
                <th>置顶</th>
                <th>推广</th>
                <th width="150">操作</th>
            </tr>
        </thead>
        <tbody>
            {loop $newsdata $k $v}
            <tr>
                <td>{$v['title']}</td>
                <td>{$v['author']}</td>
                <td>
                    {eval echo date('Y-m-d H:i:s', $v['add_time'])}<br>
                    {eval echo date('Y-m-d H:i:s', $v['lastupdate'])}
                </td>
                <td>{$v['tag']}</td>
                <td>{$v['total_comment']}</td>
                <td><a href="?c=admin&a=newsClickReport&news_id={$v['news_id']}" target="_black" class="btn btn-primary">查看</a></td>
                <td><img src="static/bootstrap/img/cms/icon_{if $v['is_show'] == 1}right{else}wrong{/if}.jpg" width="30" height="30"></td>
                <td>{$v['imgCount']}</td>
                <td><img src="static/bootstrap/img/cms/icon_{if $v['is_top'] == 1}right{else}wrong{/if}.jpg" width="30" height="30"></td>
                <td>{$v['channel_name']}</td>
                <td>
                    <a class="btn btn-primary" href="?c=admin&a=handlenews&handletype=edit&news_id={$v['news_id']}">编辑</a>&nbsp;
                    <a class="btn btn-primary" href="?c=admin&a=commentList&news_id={$v['news_id']}">查看评论</a>&nbsp;
                    <a class="btn btn-primary" href="?c=admin&a=addNewsComment&news_id={$v['news_id']}">添加评论</a>&nbsp;
                    <!-- <a class="btn btn-danger" onclick="return confirm('Sure to Delete?')" href="?c=admin&a=handlenews&handletype=delete&news_id={$v['news_id']}">删除</a> -->
                </td>
            </tr>
            {/loop}
        </tbody>
    </table>
</div>
<div class="pagination">
    <ul>
        {$pageStr}
    </ul>
</div>

{template footer}
